#include<iostream>
#include<cstring>

using namespace std;

const int N=110;

char g[N][N];
int n,k;

int main()
{
    cin>>n>>k;
    for(int i=1;i<=n;i++) cin>>g[i]+1;

    int t=0,res=-1,x=1,y=1;
    for(int i=1;i<=n;i++)
    {
        for(int j=1;j<=n;j++)
        {
            if(g[i][j] == '#') continue;
            int l=j,r=j;
            while(l>=1 && j-l+1<=k && g[i][l] == '.') l--;
            while(r<=n && r-j+1<=k && g[i][r] == '.') r++;
            t=max(0,r-l-k);
            l=r=i;
            while(l>=1 && i-l+1<=k && g[l][j] == '.') l--;
            while(r<=n && r-i+1<=k && g[r][j] == '.') r++;
            t+=max(0,r-l-k);
            if(t > res)
            {
                res=t;
                x=i,y=j;
            }
        }
    }
    cout<<x<<" "<<y<<'\n';
    return 0;
}
